Crate flo_canvas [−] [src]
An abstract representation of a vector canvas object
Structs
Canvas |
A canvas is an abstract interface for drawing graphics. It doesn't actually provide a means to render anything, but rather a way to describe how things should be drawn and pass those on to a renderer elsewhere. |
Transform2D |
Represents a 2D affine transformation matrix |
Enums
BlendMode |
Blend mode to use when drawing |
Color |
Representation of a colour |
ColorFormat |
Possible formats of a colour value |
Draw |
Instructions for drawing to a canvas |
LineCap |
How to cap lines |
LineJoin |
Possible way to join lines |
Traits
CanvasEncoding |
Trait implemented by objects that can be encoded into a canvas |
GraphicsContext |
A graphics context provides the basic set of graphics actions that can be performed |
GraphicsPrimitives |
GraphicsPrimitives adds new primitives that can be built directly from a graphics context |
Functions
draw_circle |
Returns the drawing commands for a circle |
draw_rect |
Returns the drawing commands for a rectangle |
gc_draw_bezier |
Draws the specified bezier curve in a graphics context (assuming we're already at the start position) |